package com.niuwa.p2p.service.pycredit;

public class WebServiceSingleQueryProxy implements com.niuwa.p2p.service.pycredit.WebServiceSingleQuery {
  private String _endpoint = null;
  private com.niuwa.p2p.service.pycredit.WebServiceSingleQuery webServiceSingleQuery = null;
  
  public WebServiceSingleQueryProxy() {
    _initWebServiceSingleQueryProxy();
  }
  
  public WebServiceSingleQueryProxy(String endpoint) {
    _endpoint = endpoint;
    _initWebServiceSingleQueryProxy();
  }
  
  private void _initWebServiceSingleQueryProxy() {
    try {
      webServiceSingleQuery = (new com.niuwa.p2p.service.pycredit.WebServiceSingleQueryServiceLocator()).getWebServiceSingleQuery();
      if (webServiceSingleQuery != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)webServiceSingleQuery)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)webServiceSingleQuery)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (webServiceSingleQuery != null)
      ((javax.xml.rpc.Stub)webServiceSingleQuery)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.niuwa.p2p.service.pycredit.WebServiceSingleQuery getWebServiceSingleQuery() {
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery;
  }
  
  public java.lang.String testConnection() throws java.rmi.RemoteException{
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery.testConnection();
  }
  
  public java.lang.String queryReport(java.lang.String userID, java.lang.String password, java.lang.String queryCondition) throws java.rmi.RemoteException{
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery.queryReport(userID, password, queryCondition);
  }
  
  public java.lang.String queryReport(java.lang.String userID, java.lang.String password, java.lang.String queryCondition, java.lang.String outputStyle) throws java.rmi.RemoteException{
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery.queryReport(userID, password, queryCondition, outputStyle);
  }
  
  public java.lang.String download(java.lang.String userID, java.lang.String password, java.lang.String batNo) throws java.rmi.RemoteException{
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery.download(userID, password, batNo);
  }
  
  public java.lang.String download(java.lang.String userID, java.lang.String password, java.lang.String batNo, java.lang.String outputStyle) throws java.rmi.RemoteException{
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery.download(userID, password, batNo, outputStyle);
  }
  
  public java.lang.String batOfflineDownload(java.lang.String userID, java.lang.String password, java.lang.String batNo) throws java.rmi.RemoteException{
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery.batOfflineDownload(userID, password, batNo);
  }
  
  public java.lang.String batOfflineDownload(java.lang.String userID, java.lang.String password, java.lang.String batNo, java.lang.String outputStyle) throws java.rmi.RemoteException{
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery.batOfflineDownload(userID, password, batNo, outputStyle);
  }
  
  public java.lang.String changePassword(java.lang.String userID, java.lang.String oldPasswowd, java.lang.String newPassword) throws java.rmi.RemoteException{
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery.changePassword(userID, oldPasswowd, newPassword);
  }
  
  public java.lang.String telAndNameCheck(java.lang.String userID, java.lang.String password, java.lang.String queryCondition) throws java.rmi.RemoteException{
    if (webServiceSingleQuery == null)
      _initWebServiceSingleQueryProxy();
    return webServiceSingleQuery.telAndNameCheck(userID, password, queryCondition);
  }
  
  
}